﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TestimonialAdd.ascx.cs" Inherits="AdminX_Testimonial_TestimonialAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<div>
    <uc1:Alert ID="MessAlert1" runat="server" />
</div>

<table>
    <tr>
        <td>

             <div>
                <asp:Label ID="lblTitle" runat="server" Width="90px" CssClass="text" Text="Tên Testimonial"></asp:Label>
                <asp:TextBox ID="txtTitle" runat="server" CssClass="boxlongest"  MaxLength="250"
                    ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
            </div>
            <div>
                <asp:Label ID="lblAvatar" runat="server" Width="90px" CssClass="text" 
                    Text="Ảnh đại diện"></asp:Label>
                <input id="iptImage" runat="server" type="file" size="30" class="boxlongest" />
            </div>

        </td>

        <td style="padding-left: 40px; vertical-align: text-top">
            <asp:Image ID="imgImage" runat="server" Height="100px" BorderColor="gray" BorderWidth="1px" />
        </td>
    </tr>
</table>
<div style="padding: 10px 0px 0px 0px">
    <b><asp:Label ID="lblContent" Width="110px" runat="server" CssClass="text"></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div>
    <uc2:Textbox ID="FTBContent" runat="server"></uc2:Textbox>
</div>
<div style="padding: 5px 0px 5px 0px">
    <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true"  Width="120px" />
</div>

<br />
<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Lưu" Width="80px"
    ValidationGroup="Input" />
&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnCancel" runat="server" Text="Quay lại" Width="80px" OnClick="btnCancel_Click" />

<asp:RequiredFieldValidator ID="rfvTitle" runat="server" SetFocusOnError="true" ControlToValidate="txtTitle"
    Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>